package org.example.xx2.dto;


import jakarta.validation.constraints.*;
import lombok.Data;

@Data
public class UpdateUserInfoRequest {
    @NotBlank(message = "姓名不能为空")
    private String name;

    @Min(value = 0, message = "年龄不能小于0岁")
    @Max(value = 150, message = "年龄不能超过120岁")
    private Integer age;

    @Pattern(regexp = "^1[0-9]{10}$", message = "手机号格式不正确")
    private String phone;

    @Email(message = "邮箱格式不正确")
    private String email;

    @Min(value = 0, message = "性别取值范围为 0 - 1")
    @Max(value = 1, message = "性别取值范围为 0 - 1")
    private Integer sex;

    private String question;
    private String asw;
}